package com.itasura.templatemethod;

/**
 * @author sailor wang
 * @date 2018/11/21 7:46 PM
 * @description
 */
public class App {

    public static void main(String[] args) {
        Cooker cooker = new Cooker();
        cooker.setCookMethod(new TomatoCook());
        cooker.cook();

        cooker.setCookMethod(new PotatoCook());
        cooker.cook();
    }
}